package com.mowanka.mokeng.app.event

import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.callback.livedata.event.EventLiveData

class EventViewModel : BaseViewModel() {

    val showHostFragment = EventLiveData<Boolean>()
    val showHostFragmentAnim = EventLiveData<Boolean>()
    val hideHomeLoading = EventLiveData<Long>()

    val loginEvent = EventLiveData<Boolean>()

    /**
     * 微信登陆回调
     */
    val loginWXEvent = EventLiveData<String>()

    /**
     * 一键登录主动关闭
     */
    val loginOnKeyDismiss = EventLiveData<Long>()

    val uploadEvent = EventLiveData<UploadEvent>()

    /**
     * 刷新动态列表
     */
    val refreshArticleListEvent = EventLiveData<String>()

    val moodPublish = EventLiveData<Long>()

    val editResult = EventLiveData<String>()

    val unityBuyId = EventLiveData<String>()

    val refreshUserInfo = EventLiveData<Long>()
    val refreshProperty = EventLiveData<Long>()

    val refreshGold = EventLiveData<Long>()

    val productOffTransfer = EventLiveData<String>() //购买或者下架玩家商品，列表需更新

    val messageUnreadCount = EventLiveData<Int>()

    val sceneDownloadProgress = EventLiveData<Float>()

    init {
        showHostFragment.value = true
    }
}